<?php
/**
 * @copyright	Copyright (C) 2008 Bideew. All rights reserved.
 * @license		GNU/GPL
 * This file is part of Bideew.

 * Bideew is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.

 * Bideew is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Bideew; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
// Pas d'acces direct
defined('fADMIN') or die( 'Restricted access' );
?>


<h1>Actions possibles</h1>
<ul>
	<li><a href="<?php echo "admin-".gMODULE."-action-liste.html"; ?>">Liste des pages</a></li>
	<li><a href="<?php echo "admin-".gMODULE."-action-ajout.html"; ?>">Cr&eacute;ation d'une page</a></li>
</ul>
</fieldset>

<?php
switch(gACTION) {
case "liste":
	echo "<fieldset><legend>Liste des pages</legend>\n";
	include("liste.php");
	echo "</fieldset>";
	break;
case "ajout":
	echo "<fieldset><legend>Cr&eacute;tion d'une page</legend>\n";
	include("ajout.php");
	echo "</fieldset>";
	break;
case "modification":
	if (is_numeric(gID)) {
		echo "<fieldset><legend>Modification d'une page</legend>\n";
		include("modification.php");
		echo "</fieldset>";
	}
	break;
case "suppression":
	if (is_numeric(gID)) {
		echo "<fieldset><legend>Suppression d'une page</legend>\n";
		include("suppression.php");
		echo "</fieldset>";
	}
	break;
}
?>